package com.liu.nb.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.liu.nb.dto.DebugQueryDto;
import com.liu.nb.entity.Receiptpatrol;

import java.util.HashMap;

/**
 * <p>
 * 巡逻回执任务表 服务类
 * </p>
 *
 * @author liuziyi
 * @since 2021-08-31
 */
public interface IReceiptpatrolService extends IService<Receiptpatrol> {

    //巡检员绘制录入
    public Integer savaReceipt(Receiptpatrol receiptpatrol);

    //巡检员修改回执信息回填
    public Receiptpatrol getReceipt(String ptid,String pid);

    //巡检员修改绘制录入
    public Integer updateReceipt(Receiptpatrol receiptpatrol);

    //巡检员和线路管理员，缺陷查询
    public IPage<Receiptpatrol> getReceiptAll(Receiptpatrol receiptpatrol, String cid,Integer pageNo,Integer size );

    //查询未定义缺陷级别的数据
    IPage<Receiptpatrol> getBylevel(Receiptpatrol receiptpatrol,Integer pageNo,Integer pageSize);

    IPage<DebugQueryDto> getDebugQuery(Integer current, Integer size, HashMap<String,String>map);
}
